#!/bin/bash

BUCKET='mitel-demo-sd'
#BUCKET='mitel-demo'

SOCKETSERVER='https://192.168.1.161:8443/'
#SOCKETSERVER='http://199.59.199.203:8090/'

./build.sh https://$BUCKET.s3.amazonaws.com/ $SOCKETSERVER
s3cmd put --recursive --guess-mime-type --acl-public build/images s3://$BUCKET/
s3cmd put --recursive --guess-mime-type --acl-public --add-header=Content-Encoding:gzip build/css s3://$BUCKET/
s3cmd put --recursive --guess-mime-type --acl-public --add-header=Content-Encoding:gzip build/js s3://$BUCKET/
s3cmd put --guess-mime-type --acl-public build/gadget.xml --add-header=Content-Encoding:gzip s3://$BUCKET/gadget.xml
s3cmd put --guess-mime-type --acl-public build/sidebar_gadget.xml --add-header=Content-Encoding:gzip s3://$BUCKET/sidebar_gadget.xml
